package com.xiaohei.question.feign;

import com.xiaohei.question.pojo.Question;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: ZhangYongLiang
 * @Date: 2020/11/15 16:26
 **/
@FeignClient(name = "question")
@RequestMapping("/question")
public interface QuestionFeign {

    @PostMapping("/randomQ")
    Result<Question> randomQuestion();

}
